math/big.Int.neg (field)
161 uses
math/big (current package)
float.go#L609: z.neg = x.neg
float.go#L1112: z.neg = x.neg
float.go#L1152: z.a.neg = x.neg
int.go#L34: neg bool // sign
int.go#L52: if x.neg {
int.go#L66: z.neg = neg
int.go#L73: z.neg = false
int.go#L92: return &Int{neg: x < 0, abs: abs}
int.go#L99: z.neg = x.neg
int.go#L123: z.neg = false
int.go#L130: z.neg = false
int.go#L137: z.neg = len(z.abs) > 0 && !z.neg // 0 has no sign
int.go#L143: neg := x.neg
int.go#L144: if x.neg == y.neg {
int.go#L158: z.neg = len(z.abs) > 0 && neg // 0 has no sign
int.go#L164: neg := x.neg
int.go#L165: if x.neg != y.neg {
int.go#L179: z.neg = len(z.abs) > 0 && neg // 0 has no sign
int.go#L191: z.neg = false
int.go#L195: z.neg = len(z.abs) > 0 && x.neg != y.neg // 0 has no sign
int.go#L218: z.neg = neg
int.go#L269: z.neg = len(z.abs) > 0 && x.neg != y.neg // 0 has no sign
int.go#L278: z.neg = len(z.abs) > 0 && x.neg // 0 has no sign
int.go#L295: z.neg, r.neg = len(z.abs) > 0 && x.neg != y.neg, len(r.abs) > 0 && x.neg // 0 has no sign
int.go#L303: y_neg := y.neg // z may be an alias for y
int.go#L306: if r.neg {
int.go#L326: if z.neg {
int.go#L327: if y0.neg {
int.go#L356: if m.neg {
int.go#L357: if y0.neg {
int.go#L381: case x.neg == y.neg:
int.go#L383: if x.neg {
int.go#L386: case x.neg:
int.go#L427: if x.neg {
int.go#L443: return w >= 0 || x.neg && w == -w
int.go#L450: return !x.neg && len(x.abs) <= 64/_W
int.go#L464: if x.neg {
int.go#L516: z.neg = false
int.go#L576: if y.neg {
int.go#L598: z.neg = len(z.abs) > 0 && x.neg && len(yWords) > 0 && yWords[0]&1 == 1 // 0 has no sign
int.go#L599: if z.neg && len(mWords) > 0 {
int.go#L602: z.neg = false
int.go#L621: lenA, lenB, negA, negB := len(a.abs), len(b.abs), a.neg, b.neg
int.go#L627: z.neg = false
int.go#L633: x.neg = negA
int.go#L641: y.neg = negB
int.go#L719: t.neg = !even
int.go#L720: s.neg = even
int.go#L727: r.neg = even
int.go#L728: q.neg = !even
int.go#L838: t.neg = !even
int.go#L839: s.neg = even
int.go#L853: negA := a.neg
int.go#L864: y.neg = !y.neg
int.go#L873: x.neg = !x.neg
int.go#L888: if n.neg || len(n.abs) == 0 {
int.go#L889: z.neg = false
int.go#L893: z.neg = false
int.go#L904: if n.neg {
int.go#L908: if g.neg {
int.go#L922: if x.neg {
int.go#L951: if b.neg {
int.go#L952: if a.neg {
int.go#L955: b.neg = false
int.go#L1093: if x.neg || x.Cmp(p) >= 0 { // ensure 0 <= x < p
int.go#L1113: z.neg = x.neg
int.go#L1119: if x.neg {
int.go#L1124: z.neg = true // z cannot be zero if x is negative
int.go#L1129: z.neg = false
int.go#L1146: if x.neg {
int.go#L1162: if x.neg {
int.go#L1166: z.neg = len(z.abs) > 0
int.go#L1170: z.neg = false
int.go#L1176: if x.neg == y.neg {
int.go#L1177: if x.neg {
int.go#L1182: z.neg = true // z cannot be zero if x and y are negative
int.go#L1188: z.neg = false
int.go#L1193: if x.neg {
int.go#L1200: z.neg = false
int.go#L1206: if x.neg == y.neg {
int.go#L1207: if x.neg {
int.go#L1212: z.neg = false
int.go#L1218: z.neg = false
int.go#L1222: if x.neg {
int.go#L1226: z.neg = true // z cannot be zero if x is negative and y is positive
int.go#L1233: z.neg = false
int.go#L1239: if x.neg == y.neg {
int.go#L1240: if x.neg {
int.go#L1245: z.neg = true // z cannot be zero if x and y are negative
int.go#L1251: z.neg = false
int.go#L1256: if x.neg {
int.go#L1263: z.neg = true // z cannot be zero if one of x or y is negative
int.go#L1269: if x.neg == y.neg {
int.go#L1270: if x.neg {
int.go#L1275: z.neg = false
int.go#L1281: z.neg = false
int.go#L1286: if x.neg {
int.go#L1293: z.neg = true // z cannot be zero if only one of x or y is negative
int.go#L1299: if x.neg {
int.go#L1302: z.neg = false
int.go#L1308: z.neg = true // z cannot be zero if x is positive
int.go#L1315: if x.neg {
int.go#L1318: z.neg = false
intconv.go#L25: return string(x.abs.itoa(x.neg, base))
intconv.go#L34: return append(buf, x.abs.itoa(x.neg, base)...)
intconv.go#L92: case x.neg:
intconv.go#L192: z.neg = len(z.abs) > 0 && neg // 0 has no sign
intmarsh.go#L25: if x.neg {
intmarsh.go#L43: z.neg = b&1 != 0
intmarsh.go#L53: return x.abs.itoa(x.neg, 10), nil
intmarsh.go#L73: return x.abs.itoa(x.neg, 10), nil
prime.go#L39: if x.neg || len(x.abs) == 0 {
rat.go#L63: z.a.neg = f < 0
rat.go#L279: if x.a.neg {
rat.go#L295: if x.a.neg {
rat.go#L304: z.a.neg = a.neg != b.neg
rat.go#L326: z.a.neg = !z.a.neg
rat.go#L368: z.a.neg = false
rat.go#L375: z.a.neg = len(z.a.abs) > 0 && !z.a.neg // 0 has no sign
rat.go#L434: z.a.neg = false
rat.go#L441: neg := z.a.neg
rat.go#L442: z.a.neg = false
rat.go#L443: z.b.neg = false
rat.go#L448: z.a.neg = neg
rat.go#L476: z.neg = x.neg
rat.go#L515: z.a.neg = false
rat.go#L540: z.a.neg = a.neg != b.neg
ratconv.go#L202: z.a.neg = neg && len(z.a.abs) > 0 // 0 has no sign
ratconv.go#L365: if x.a.neg {
ratmarsh.go#L35: if x.a.neg {
ratmarsh.go#L65: z.a.neg = b&1 != 0
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |